﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tenta_2014_12_14_5
{
    class Data
    {
        public int I { get; set; }
        public Data(int i = 0)
        {
            this.I = i;
        }

        public override string ToString()
        {
            return I.ToString();
        }

        public override int GetHashCode()
        {
            return I.ToString().GetHashCode();
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            //HT<Data> hash = new HT<Data>(8);

            //for (int i = 0; i < 15; i++)
            //{
            //    hash.Add(new Data(i));
            //}
            //hash.Print();
            //Console.Read();
            WordCounter counter = new WordCounter();
            counter.CountWords("nils_holgersson.txt");
            counter.Search("och");
            Console.Read();
        }
    }
}
